import { useContext } from "react";
import { TokenContext, UserContext } from "../App";

function useUserContext() {
    const user = useContext(UserContext);
    const token = useContext(TokenContext);

    return [user, token]
}

export default useUserContext;